package com.lft01.thread;

/**
 * Function: 		ADD FUNCTION.
 * Reason:   		ADD REASON.
 * Date             2020/6/6 13:08
 * <p>
 * Class Name:      NumPrintTest2
 * Package Name:    com.lft.thread
 *
 * @author Laifengting
 * @version 1.0.0
 * @since JDK 8
 */
public class NumPrintTest2 {
	public static void main(String[] args) {
		
		NumPrintTest numPrintTest = new NumPrintTest();
		
		new Thread(() -> {
			for (int i = 0; i < 10; i++) {
				numPrintTest.print0();
			}
		}, "打印0的线程").start();
		
		new Thread(() -> {
			for (int i = 0; i < 10; i++) {
				numPrintTest.print1();
			}
		}, "打印1的线程").start();
		
	}
}
